import unittest
from HTMLTestRunner import HTMLTestRunner

if __name__ == '__main__':
    ts=unittest.defaultTestLoader.discover('./p2',pattern='Test*.py')
    f=open('./test_report.html','wb')
    tr=HTMLTestRunner(stream=f,title='加法减法测试报告',description='详细的测试结果')
    tr.run(ts)
    f.close()